package com.shr.code_interview;

public class Solution_58_1 {
    public String LeftRotateString(String str,int n) {
    	if(n>=0){
	    	int realNum = n % str.length();
	        String strFirst = str.substring(0, realNum);
	        String strLast = str.substring(realNum, str.length());
	        return strLast + strFirst;
    	}
    	return str;
    }
}
